﻿using System;
using Qadir.Collections.Generic;

namespace QadirGenericCollectionsSample
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "Qadir.Collections.Generic Demo";
            Manager<string> strings = new Manager<string>();
            while (true)
            {
                Console.Write("Enter a string to add it to the Manager: ");
                strings.Add(Console.ReadLine());
                Console.WriteLine("All strings in strings:\n");
                strings.ApplyActionToAll((foo) =>
                    {
                        Console.WriteLine("\t* " + foo);
                    });
                Console.Write("\n");
                Console.WriteLine("Press ENTER to continue.");
                Console.ReadLine();
                Console.Clear();
            }
        }
    }
}
